<script>
$(document).ready(function(){
	$(".s_type").change(function(){
		var value = $(this).val();
		if(value=='PRODUCT_PRICE'){
			$(".s_price").css("display","block");
			$(".s_text").css("display","none");
			}else{
				$(".s_price").css("display","none");
				$(".s_text").css("display","block");
				}
		//alert (value);
		})
	});
</script>
<div id="clear"></div><div style="position:absolute; right:15px; top:20px;"><form method="get" action="user_stock_list.php">
<input type="text" name="s_text" value="<? echo $_GET[s_text];?>" class="s_text" style="float:left; <? if($_GET[s_type]=='PRODUCT_PRICE'){echo 'display:none;';}?>"  />
<select name="s_price" style="margin:0 5px; float:left; <? if($_GET[s_type]=='PRODUCT_PRICE'){echo 'display:block;';}else{echo 'display:none;';}?>" class="s_price">
<?
if(isset($_GET[s_price])){
	$check_array_price =strpos($_GET[s_price], '>');
	if($check_array_price!== false){
		echo '<option value="'.$_GET[s_price].'">'.PRODUCT_OVER.' '.unit(substr($_GET[s_price],1)).'</option>';
		}else{
		echo '<option value="'.$_GET[s_price].'">'.unit($_GET[s_price]).'</option>';
		}
	 }
eval("\$array_price = ".parameters(34));
foreach($array_price as $v){
	$check_array_price =strpos($v, '>');
	if($check_array_price!== false){
		echo '<option value="'.$v.'">'.PRODUCT_OVER.' '.unit(substr($v,1)).'</option>';
		}else{
		echo '<option value="'.$v.'">'.unit($v).'</option>';
		}
	
	}
?>
</select>
<select name="s_type" style="margin:0 5px; float:left;" class="s_type" >
<? 

if(isset($_GET[s_type])){
	echo '<option value="'.$_GET[s_type].'">'; echo eval('echo '.$_GET[s_type].';');  echo '</option>';
	}

?>
  <option value="PRODUCT_NAME"><? echo PRODUCT_NAME;?></option>
  <option value="PRODUCT_MODEL"><? echo PRODUCT_MODEL;?></option>
  <option value="PRODUCT_BATCH_NO"><? echo PRODUCT_BATCH_NO;?></option>
  <option value="PRODUCT_PRICE"><? echo PRODUCT_PRICE;?></option>
</select><input type="submit" value="<? echo SEARCH_PRODUCT; ?>" /></form></div>
<img style="margin-left:10px; float:left;" src="images/ttfjpg.php?t=<? echo SITE_HEADER;?>&bg=logobg.jpg&z=20&x=5&y=60&r=255&b=255&g=255"  /><ul style="margin:0px; padding:70px 0 0 0;">
<?
echo @arr_show_li(1,MENU_TOP);
?>
</ul>

